interval
interval
Precondition
pre debug: ((step.sign = 0): through = from)
Type Parameters
Fields
Inclusive bound. Included only if reachable via `from + n * step`.
`nil` means unbounded.
`nil` means unbounded.
Functions
(env_vars option (container.Map String String), feed_stdin option io.path, timeout option time.duration) => outcome tokiwa.process_result[Inherited from Sequence]¶
(env_vars option (container.Map String String), feed_stdin option io.path, timeout option time.duration)
=>
outcome tokiwa.process_result[Inherited from Sequence]
¶execute this Sequence of process+args
0.099dev (GIT hash 9b94ad4b4a4bff2bf2be7d77be2c6e1fd7683c4d)
This is a `Set T` and a `Sequence T` created by repeatedly adding `step` to `from`.
Stops before passing `through` (exceeding it for `step > 0`, falling below for `step < 0`).
Empty if `step` points away from `through`:
interval 1 2 -1 # empty: steps down, but through is up
interval 2 1 1 # empty: steps up, but through is down
A zero `step` is only allowed when `from = through`; such an interval
contains the single element `from`:
interval 5 5 0 # 5
If `through` is `nil`, the interval is unbounded and limited only by type `T` range.
This is not an interval in the mathematical sense, but rather a representation
of an arithmetic progression.